package com.gzz.demo.pattern.interpret;

import java.util.Arrays;
import java.util.StringTokenizer;

public class Client{
    public static void main(String[] args){
        String text = "LOOP 2 PRINT 杨过 SPACE SPACE SPACE SPACE PRINT 小龙女 BREAK END PRINT 郭靖 SPACE SPACE PRINT 黄蓉";

        StringTokenizer tokenizer = new StringTokenizer(text);
        while (tokenizer.hasMoreTokens()){
            System.out.println("args = " + tokenizer.nextToken());
        }
//        Context context = new Context(text);
//
//        Node node = new ExpressionNode();
//        node.interpret(context);
//        node.execute();
    }
}
